<form action="[?php echo url_for($sf_context->getModuleName().'_collection', array('action' => 'batchDeleteFromCart')) ?]" method="post">
  <div class="content" id="batch_edition_cart_content">
    <div id="cart_table_container" class="cart_items">
      [?php include_partial('<?php echo $this->getModuleName() ?>/cart_items', array('cart_objects' => $cart_objects)) ?]
    </div>
    [?php include_partial('<?php echo $this->getModuleName() ?>/cart_actions', array('cart_objects' => $cart_objects)) ?]
    <div class="bottom">
    </div>
  </div>
  <div class="footer">
    [?php include_partial('<?php echo $this->getModuleName() ?>/cart_footer', array('cart_objects' => $cart_objects)) ?]
  </div>
</form>

[?php javascript_tag() ?]
  var container = $('cart_table_container');
  var table     = $('cart_table');
  var containerHeight = container.getHeight();
  var tableHeight     = table.getHeight();

  $('batch_edition_cart_content').hide();
  if (tableHeight < containerHeight)
  {
    container.style.height=tableHeight + 10;
  }
[?php end_javascript_tag() ?]
